package org.vnetcon.blobdb.database;

/**
 * If you want to use BlobDB in gateway mode you must implement this interface.
 * 
 * @author Michael Kankkonen 17.1.2011 
 *         http://www.vnetcon.org
 *
 */
public interface GatewayInterface {

	/**
	 * When users executes updates using e.g. BlobDB driver your class will
	 * get the statement they give here. This can be your own syntax.
	 * 
	 * @param updateString
	 * @return
	 */
	public String executeUpdate(String updateString);
	/**
	 * When users executes queries using e.g. BlobDB driver your class will
	 * get the statement they give here. This can be your own syntax.
	 * 
	 * @param updateString
	 * @return
	 */
	public ResultSet executeQuery(String queryString);
	public ResultSet executeQuery(String queryString, int rangeStart, int rangeEnd);
	
}
